package com.zhouyu.service;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author leimingchao
 * create 2025-05-12 22:04
 *
 * 使用@Import导入的ZhouyuImportSelector，ZhouyuImportSelector不会成为bean
 */
public class ZhouyuImportSelector implements ImportSelector {

	@Override
	public String[] selectImports(AnnotationMetadata importingClassMetadata) {
		//导入生成的beanName为类的全限定名
		return new String[] {UserService.class.getName()};
	}
}
